{% extends 'base.html' %}
{% load pp_url %}
{% load issuetags %}

{% block title %}Submit New Issue{% endblock %}
{% block browser_bar %}

{% endblock %}

{% block content%}

<div class="stage">
		<div class="issuemask">

{% if request.object %}
{% pp_issue_form POST=request.POST path=request.path user=request.user object=request.object %}
   <div class="pagehead">{{pp_issue.contextname }}</div>
   <div class="submissionbound">
   <div class="errors">{{ pp_issue.form.errors }}</div>
	<form method="post" action="">
		Summary of Issue: <br>{{ pp_issue.form.name }}<br>
		Description: <br>{{ pp_issue.form.text }}
	  	{{ pp_issue.form.form_id}}
		{% csrf_token %}
    <input type="submit" class="button green" value="Submit Issue" />
	</form>
{% endpp_issue_form %}
{% else %}
{% pp_issue_form POST=request.POST path=request.path user=request.user %}
   <div class="pagehead">{{pp_issue.contextname }}</div>
   <div class="submissionbound">
   <div class="errors">{{ pp_issue.form.errors }}</div>
	<form method="post" action="">
        {% if not pp_issue.has_topic %} Topic: <br> {{pp_issue.form.topics}}<br>{% endif %}
		Summary of Issue: <br>{{ pp_issue.form.name }}<br>
		Description: <br>{{ pp_issue.form.text }}
	  	{{ pp_issue.form.form_id}}
		{% csrf_token %}
    <input type="submit" class="button green" value="Submit Issue" />
	</form>
{% endpp_issue_form %}
{% endif %}
    {% include '_tutorial.html' %}
    </div>
			<div class="rightcol">
				{% include "_rightcol.html" %}		
					
			</div> 


</div></div>


{% endblock content %}

